<template>
  <CloudButton @click="success">
    Customized display duration
  </CloudButton>
</template>
<script>
export default {
  title: '3.修改延时',
  methods: {
    success() {
      this.$cloudMessage.success({
        content: 'This is a prompt message for success, and it will disappear in 10 seconds',
        top: '100px',
        duration: 10
      });
    },
  },
};
</script>